<template>
	<view>
		<view>msg:{{ msg }}</view>
		<input class="input" v-model="msg">
		<view v-for="item in arr">{{ item }}</view>
		<button @click="showTip()">点击</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msg:"测试",
				arr:[1,2,3,4,5,6]
			};
		},
		methods:{
			showTip(){
				uni.showToast({
					title:this.msg
				})
			}
		}
	}
</script>

<style lang="scss">
.input{
	border: 1px solid black;
}
</style>
